package testing;

import java.util.Map.Entry;

import hypeerweb.node.Contents;
import hypeerweb.node.Node;
import hypeerweb.visitor.BroadcastVisitor;
import hypeerweb.visitor.Parameters;

public class BroadcastVisitorTestClass extends BroadcastVisitor {

	protected void operation(Node node, Parameters parameters) {
		Contents contents = node.getContents();
		if(contents.get("visit")==null){
			System.out.println("test");
			node.getContents().set("visit", 1);
		}else{
			int i = (Integer) contents.get("visit");
			contents.set("visit", i+1);
		}
	}

}
